Composition of Database Relations
نویسندگان
چکیده
The “standard” method of implementing composition is to perform join and projection as one combined operation and then to remove the duplicates from the result of this operation as a separate step. When a hash-based or sort-merge algorithm is used for the join operation and the size of the result is large, duplicates cannot be eliminated at the same time the join is being performed. In this paper, we argue for implementing composition as a primitive operation, and present a single-sided composition algorithm that performs join, projection, and duplicate elimination as one unilied operation. We also present experimental results that show an operating region in which this algorithm outperforms composition by the standard method. This operating region is characterized by a join result many times larger than the source relations, and many duplicates after projection over the non-join attributes. This occurs, for example, in deductive databases when computing transitive closures of dense graphs.
منابع مشابه
A Qualitative Trajectory Calculus and the Composition of Its Relations
Continuously moving objects are prevalent in many domains. Although there have been attempts to combine both spatial and temporal relationships from a reasoning, a database, as well as from a logical perspective, the question remains how to describe motion adequately within a qualitative calculus. In this paper, a Qualitative Trajectory Calculus (QTC) for representing and reasoning about moving...
متن کاملA Database Model for Medical Consultation
The database model presented in this paper is suitable for application in which queries may require non-crisp references to certain attributes. The data item (attribute) values may be crisp or fuzzy. For instance, such adjectives as 'high' or 'normal' may be attribute values for the attribute blood pressure. A disease or a condition can be described by a number of symptoms which may be crisp al...
متن کاملIceDust 2: Derived Bidirectional Relations and Calculation Strategy Composition
Derived values are values calculated from base values. They can be expressed with views in relational databases, or with expressions in incremental or reactive programming. However, relational views do not provide multiplicity bounds, and incremental and reactive programming require significant boilerplate code in order to encode bidirectional derived values. Moreover, the composition of variou...
متن کاملRelational Databases Query Optimization using Hybrid Evolutionary Algorithm
Optimizing the database queries is one of hard research problems. Exhaustive search techniques like dynamic programming is suitable for queries with a few relations, but by increasing the number of relations in query, much use of memory and processing is needed, and the use of these methods is not suitable, so we have to use random and evolutionary methods. The use of evolutionary methods, beca...
متن کاملTraceable and information-preserving composition of structural models
A structural view is a base view for describing software architectures. A structural view typically comprises several structural models that highlight particular aspects of the software. From our experience, managing the dependencies between structural models is a challenging, yet crucial task for maintaining consistency of an architectural description. In this paper, we focus on the compositio...
متن کامل